<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>监理服务系统</title>
    <!--公用样式-->
    <link rel="stylesheet" type="text/css" href="${re.contextPath}/plugin/common/css/comment.css"/>
    <!--页面样式-->
    <link rel="stylesheet" type="text/css" href="${re.contextPath}/plugin/common/css/style.css"/>
    <!--Layui-->
    <link rel="stylesheet" href="${re.contextPath}/plugin/layui/css/layui.css" media="all"/>
    <!--页面样式-->
    <link rel="stylesheet" type="text/css" href="${re.contextPath}/plugin/common/css/extended.css"/>
    <!--JQ-->
    <script type="text/javascript" charset="utf-8"
            src="${re.contextPath}/plugin/common/js/jquery-1.8.3.min.js"></script>
    <!--Layui-->
    <script type="text/javascript" src="${re.contextPath}/plugin/layui/layui.js" charset="utf-8"></script>
    <!--公用样式JS-->
    <script type="text/javascript" src="${re.contextPath}/plugin/common/js/comment.js" charset="utf-8"></script>
    <!--进度条-->
    <style>
        .layui-table-cell {
            height: 46px;
            line-height: 46px;
        }
    </style>
</head>

<body style="background-color: #FFFFFF;" >
<!--容器-->

    <!--右侧内容-->
    <div  style="width: 100%;background-color: #FFFFFF;height: 300px;">
        <div  style="height: 200px;background-color: #FFFFFF;padding-top: 30px;padding-left: 30px;">
            <input id="taskId"   type="hidden" name="taskId"  value="${taskId}">
            <input id="taskName"   type="hidden" name="taskName"  value="${taskName}">
            <input id="caseId"   type="hidden" name="caseId"  value="${caseId}">
            <input id="processInstanceId"   type="hidden" name="processInstanceId"  value="${processInstanceId}">
            <input id="businessId"   type="hidden" name="businessId"  value="${businessId}">
            <div >
                <label class="fl"><span class="red"></span> 请选择审核意见</label>
                <select name="remark" id="remark"  style="width: 300px;!important;"  class="ml10"
                        style="width:30% !important;">
                    <option value="">请选择</option>
                    <#list remarklist as vo>
                        <option
                             <#if  "${vo.badtName}"=='同意' > selected</#if>  value="${vo.badtName}">
                            ${vo.badtName}
                        </option>
                    </#list>
                </select>
            </div>
        </div>
    </div>

<!--公用样式JS-->
<script type="text/javascript" src="${re.contextPath}/plugin/tools/tool.js"></script>
<script type="text/javascript" src="${re.contextPath}/plugin/tools/cardUtils.js"></script>


<script>

    var layer, form, laydate, upload, uploadListIns, element, tableIns, table;
    $(function () {
        layui.use(['form', 'layer', 'upload', 'element'], function () {
            laydate = layui.laydate;
            form = layui.form;
            element = layui.element;
            upload = layui.upload;

        });
    });
    $('.close').click(function () {
        var index = parent.layer.getFrameIndex(window.name);
        parent.layer.close(index);
    });

    function check() {
        $('[type=button]').addClass("layui-btn-disabled").attr("disabled", true);
        var processInstanceId = $("#processInstanceId").val();
        // caseId
        var caseId = $("#caseId").val();
        // 任务id
        var taskId = $("#taskId").val();

        var taskName = $("#taskName").val();
        // 业务表id
        var businessId = $("#businessId").val();
        var remark = $("#remark").val();
        var jsonc = {
            processInstanceId: processInstanceId,
            caseId: caseId,
            taskId: taskId,
            businessId: businessId,
            remark: remark,
            checkStatus: "2",
            taskName: taskName
        }

        return;
        var url = "/supervisor/lcManager/updateCheckJlNB";
        var isqz = "${isqz}";
        if(isqz=="1") {
            layer.confirm('请确定是否已经签字？', {
                btn: ['确定', '取消'],

            }, function (index) {
                layerAjax(url, jsonc, '', function (d) {
                    if (d.flag == true) {
                        layer.msg(d.msg);
                    } else {
                        // 恢复按钮可用
                        $('[type=button]').removeClass("layui-btn-disabled").attr("disabled", false);
                        layer.msg(d.msg, {icon: 2});
                    }
                });
            }, function (index) {
                // 恢复按钮可用
                $('[type=button]').removeClass("layui-btn-disabled").attr("disabled", false);
            });
        }else{
            layerAjax(url, jsonc, '', function (d) {
                if (d.flag == true) {
                    layer.msg(d.msg);
                } else {
                    // 恢复按钮可用
                    $('[type=button]').removeClass("layui-btn-disabled").attr("disabled", false);
                    layer.msg(d.msg, {icon: 2});
                }
            });

        }


    }

</script>
</body>
</html>